package com.eduagent.xwqeduagent.api.imageTranslation.constant;

/**
 * 图片翻译常量
 */
public class ImageTranslationConstant {
    /**
     * 基础API URL
     */
    public static final String BASE_URL = "https://api.niutrans.com";
    
    /**
     * 上传并翻译图片API端点
     */
    public static final String UPLOAD_TRANSLATE_URL = BASE_URL + "/v2/image/translate/upload";
    
    /**
     * 获取图片翻译状态API端点
     */
    public static final String STATUS_URL = BASE_URL + "/v2/image/translate/status/%s";
    
    /**
     * 终止图片翻译API端点
     */
    public static final String INTERRUPT_URL = BASE_URL + "/v2/image/translate/interrupt/%s";
    
    /**
     * 下载图片翻译结果API端点
     */
    public static final String DOWNLOAD_URL = BASE_URL + "/v2/image/translate/download/%s";
    
    /**
     * 获取下载链接API端点
     */
    public static final String DOWNLOAD_URL_ENDPOINT = BASE_URL + "/v2/image/translate/getDownloadUrl/%s";
    
    /**
     * 删除图片翻译API端点
     */
    public static final String DELETE_URL = BASE_URL + "/v2/image/translate/delete/%s";
    
    /**
     * 同步图片翻译API端点
     */
    public static final String SYNC_TRANSLATE_URL = BASE_URL + "/v2/image/translate/sync";
    
    /**
     * 翻译状态码
     */
    public static class TranslationStatus {
        /**
         * 未翻译
         */
        public static final int NOT_TRANSLATED = 101;
        
        /**
         * 排队中
         */
        public static final int IN_QUEUE = 102;
        
        /**
         * 翻译中
         */
        public static final int TRANSLATING = 103;
        
        /**
         * 翻译终止
         */
        public static final int TERMINATED = 104;
        
        /**
         * 翻译成功
         */
        public static final int SUCCESS = 105;
        
        /**
         * 翻译失败
         */
        public static final int FAILURE = 106;
    }
    
    /**
     * 下载文件类型
     */
    public static class DownloadType {
        /**
         * 原文件
         */
        public static final int ORIGINAL = 0;
        
        /**
         * 译文件
         */
        public static final int TRANSLATED = 1;
        
        /**
         * 双语文件
         */
        public static final int BILINGUAL = 2;
    }
    
    /**
     * 领域代码
     */
    public static class RealmCode {
        /**
         * 通用领域
         */
        public static final int GENERAL = 0;
        
        /**
         * 医药领域
         */
        public static final int MEDICAL = 1;
        
        /**
         * 专利领域
         */
        public static final int PATENT = 2;
    }
    
    /**
     * 结果类型
     */
    public static class ResultType {
        /**
         * 文件流
         */
        public static final int FILE_STREAM = 0;
        
        /**
         * BASE64编码
         */
        public static final int BASE64 = 1;
    }
} 